function CollapsedReducer(prevState = {
    collapsed: false
},action) {
    let {type} = action

    switch (type){
        case 'change-collapsed':
            let newState = {...prevState}
            newState.collapsed = !newState.collapsed
            return newState
        default:
            return prevState
    }
}

export default CollapsedReducer